<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>LinkedList</title>
</head>
<body>
<script type="module">
  import LinkedList from '../../data-structures/linked-list/LinkedList.js';
  import reverseTraversal from './reverse-traversal/reverseTraversal.js';
  const list = new LinkedList();
  console.log(JSON.stringify(list))
  console.log(list)
  list.append(1);
  list.append(2);
  list.append(3);
  // 定义回调函数
  function printNode(value) {
    console.log(value,'打印');
  }
  reverseTraversal(list,printNode)
</script>
</body>
</html>
